package com.codeoss.framework.view.json;

import java.util.ArrayList;
import java.util.List;

public class TreeModel {
	private String id;
	private String name;
	private List<TreeModel> children=new ArrayList<TreeModel>();
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<TreeModel> getChildren() {
		return children;
	}
	public void setChildren(List<TreeModel> children) {
		this.children = children;
	}
	
	public void addChild(TreeModel child) {
		children.add(child);
	}
}
